package com.sts.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
/**
 * 工单评论实体类
 * 记录工单处理过程中的交流信息
 */
@Data
@Builder
@TableName("ticket_comment")
public class TicketComment {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("ticket_id")
    private Long ticketId;

    @TableField("parent_id")
    private Long parentId;

    private String content;

    @TableField("author_id")
    private Long authorId;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
